<template>
  <div>
    <h2>搜索</h2>
    <select v-model="type" >
      <option value="name">姓名</option>
      <option value="gender">性别</option>
      <option value="age">年龄</option>
    </select>
    <input type="text" v-model="value">
    <input type="button" value="搜索" @click="handleClick">
  </div>
</template>

<script>
export default {
  data(){
    return {
      type:"",
      value:""
    }
  },
  methods:{
    handleClick(){
      console.log("click")
      this.$emit('show',{type:this.type,value:this.value});
    }
  }
}
</script>

<style>

</style>